<template>
	<view>
		<wm-poster :imgSrc="imgSrc" :QrSrc="qrSrc" :Referrer="referrer" :Title="Title" :PriceTxt="PriceTxt" :OriginalTxt="OriginalTxt"></wm-poster>
	</view>
</template>

<script>
	import wmPoster from "@/components/wm-poster/wm-poster"
	import { mapState } from 'vuex'
	export default {
		components: {
			wmPoster
		},
		data() {
			return {
				imgSrc: "",
				qrSrc: "",
				Title: "",
				referrer: "花尖末推荐你",
				PriceTxt: "分销价￥9",
				OriginalTxt: "原价￥18"
			}
		},
		beforeCreate: function(){
			
		},
		computed:{
			...mapState(['hasLogin','userInfo']),
		},
		onLoad: function (option) {
			console.log(1111)
			console.log(option)
			if(this.userInfo.nickname){
				this.referrer = this.userInfo.nickname + "推荐你"
			}
			this.imgSrc = option.imgSrc
			this.qrSrc = option.qrSrc
			this.Title = option.Title
		},
		methods: {
			
		},
		onUnload() {
			console.log('页面卸载')
		}
	}
</script>


<style lang='scss'>
	
</style>
